1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.lookup; |
17 | |
|
18 | |
import java.util.Properties; |
19 | |
|
20 | |
import org.kuali.rice.kew.util.KEWConstants; |
21 | |
import org.kuali.rice.kim.bo.impl.GenericPermission; |
22 | |
import org.kuali.rice.kim.bo.impl.GroupImpl; |
23 | |
import org.kuali.rice.kim.bo.types.impl.KimTypeImpl; |
24 | |
import org.kuali.rice.kim.util.KimCommonUtils; |
25 | |
import org.kuali.rice.kim.util.KimConstants; |
26 | |
import org.kuali.rice.kns.lookup.KualiLookupableImpl; |
27 | |
import org.kuali.rice.kns.util.KNSConstants; |
28 | |
import org.kuali.rice.kns.util.UrlFactory; |
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | 0 | public class GroupLookupableImpl extends KualiLookupableImpl { |
37 | |
|
38 | |
private static final long serialVersionUID = -7862240710174441633L; |
39 | |
|
40 | |
public String getCreateNewUrl() { |
41 | 0 | String url = ""; |
42 | 0 | if((getLookupableHelperService()).allowsNewOrCopyAction(KimConstants.KimUIConstants.KIM_GROUP_DOCUMENT_TYPE_NAME)){ |
43 | 0 | Properties parameters = new Properties(); |
44 | 0 | parameters.put(KNSConstants.DISPATCH_REQUEST_PARAMETER, KNSConstants.DOC_HANDLER_METHOD); |
45 | 0 | parameters.put(KNSConstants.PARAMETER_COMMAND, KEWConstants.INITIATE_COMMAND); |
46 | 0 | parameters.put(KNSConstants.DOCUMENT_TYPE_NAME, KimConstants.KimUIConstants.KIM_GROUP_DOCUMENT_TYPE_NAME); |
47 | 0 | url = getCreateNewUrl(UrlFactory.parameterizeUrl( |
48 | |
KimCommonUtils.getKimBasePath()+KimConstants.KimUIConstants.KIM_GROUP_DOCUMENT_ACTION, parameters)); |
49 | |
} |
50 | 0 | return url; |
51 | |
} |
52 | |
|
53 | |
} |